<!--conf
<sample>
              <product version="1.5" edition="pro"/>
                     <modifications>
                            <modified date="070101"/>
                     </modifications>
               </sample>
 --> 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
<head>
	<title>Search box</title>
	
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="../../../codebase/dhtmlx.css"/>
	<script src="../../../codebase/dhtmlx.js"></script>
</head>
<body>
	<h1>Search box</h1>
	<p>You can set search box in grid's hearder for each column. <br/>
	Type requested information in input field and the row with a suggestion will be highlighted.</p>  
   	<div id="gridbox" style="width:600px; height:250px; background-color:white;"></div>
<script>
	mygrid = new dhtmlXGridObject('gridbox');
	mygrid.setImagePath("../../../codebase/imgs/");
	mygrid.setHeader("Sales,Book Title,Author,Price,In Store,Shipping");
	mygrid.attachHeader("&nbsp;,#text_search,#select_filter,&nbsp;,#cspan,#cspan");
	mygrid.setInitWidths("50,150,120,80,80,80,80,200")
	mygrid.enableAutoWidth(true)
	mygrid.setColAlign("right,left,left,right,center,left")
	mygrid.setColTypes("dyn,ed,ed,price,ch,co");
    mygrid.getCombo(5).put(2,2);
  	mygrid.setColSorting("int,str,str,int,str,str")
	mygrid.setSkin("dhx_skyblue")
	mygrid.init();
	mygrid.enableSmartRendering(true);
    mygrid.loadXML("../common/500.xml");
</script>

</body>
</html>

